package com.fh.shop.api.product.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product implements Serializable {

    private Long id;

    private Long cate1;

    private Long cate2;

    private Long cate3;

    private Long brandId;

    private Integer stock;

    private String mainImage;
    @DateTimeFormat(pattern = "yyyy-MM-dd") // 前台向后台传参
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // 后台向前台响应Json数据的时候
    private Date createDate;

    private BigDecimal price;

    private String productName;

    private String cateName;

    private Integer status;

    private Integer newProduct;

    private Integer recommend;

    private Integer sale;



}
